package bpui.perspectives;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import bpui.views.NavigationView;

public class Perspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "bp-ui.perspective";

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);

		IFolderLayout folder2 = layout.createFolder("other", IPageLayout.LEFT, 0.4f, editorArea);
		folder2.addPlaceholder(NavigationView.ID + ":*");
		folder2.addView(NavigationView.ID);
		
//		IFolderLayout folder = layout.createFolder("messages", IPageLayout.RIGHT, 0.7f, editorArea);
//		folder.addPlaceholder(View.ID + ":*");
//		folder.addView(View.ID);
		
//		layout.getViewLayout(NavigationView.ID).setCloseable(false);
	}
}
